import 'package:flutter_demo/ui/pages/bar/index.dart';
import 'package:flutter_demo/ui/pages/comic/home/view.dart';
import 'package:flutter_demo/ui/pages/comic/index.dart';
import 'package:flutter_demo/ui/pages/composite/binding.dart';
import 'package:flutter_demo/ui/pages/composite/index.dart';
import 'package:flutter_demo/ui/pages/event/event_view.dart';
import 'package:flutter_demo/ui/pages/getx/count/count_binding.dart';
import 'package:flutter_demo/ui/pages/getx/count/count_view.dart';
import 'package:flutter_demo/ui/pages/getx/snackbar/snackbar_view.dart';
import 'package:flutter_demo/ui/pages/image/bindings.dart';
import 'package:flutter_demo/ui/pages/image/view.dart';
import 'package:flutter_demo/ui/pages/primitive/index.dart';
import 'package:flutter_demo/ui/pages/read/index.dart';
import 'package:flutter_demo/ui/pages/refresh/list_page.dart';
import 'package:flutter_demo/ui/pages/refresh/list_page_binding.dart';
import 'package:flutter_demo/ui/pages/search/index.dart';
import 'package:flutter_demo/ui/pages/status/bindings.dart';
import 'package:flutter_demo/ui/pages/status/view.dart';
import 'package:flutter_demo/ui/pages/treasure/index.dart';
import 'package:flutter_demo/ui/pages/vpn/bindings.dart';
import 'package:flutter_demo/ui/pages/vpn/view.dart';
import 'package:flutter_demo/ui/pages/web/web_binding.dart';
import 'package:flutter_demo/ui/pages/web/web_view.dart';
import 'package:get/get_navigation/src/routes/get_route.dart';

class AsRouter {
  static const String initialRoute = BarPage.routeName;
  static List<GetPage> getPages = [
    ///起始路由
    GetPage(
      name: Count.routeName,
      page: () => const Count(),
      binding: CountBinding(),
    ),
    GetPage(
      name: ListPage.routeName,
      page: () => ListPage(),
      binding: ListPageBinding(),
    ),
    GetPage(
      name: Snackbar.routeName,
      page: () => const Snackbar(),
    ),
    GetPage(
      name: EventView.routeName,
      page: () => const EventView(),
    ),
    GetPage(
      name: CompositePage.routeName,
      page: () => CompositePage(),
      binding: CompositeBinding(),
    ),
    GetPage(
      name: WebPage.routeName,
      page: () => const WebPage(),
      binding: WebBinding(),
    ),
    GetPage(
      name: TreasurePage.routeName,
      page: () => const TreasurePage(),
      binding: TreasureBinding(),
    ),
    GetPage(
      name: SearchPage.routeName,
      page: () => SearchPage(),
      binding: SearchBinding(),
    ),
    GetPage(
      name: PrimitivePage.routeName,
      page: () => const PrimitivePage(),
      binding: PrimitiveBinding(),
    ),
    GetPage(
      name: ReadPage.routeName,
      page: () => const ReadPage(),
      binding: ReadBinding(),
    ),
    GetPage(
      name: VpnPage.routeName,
      page: () => VpnPage(),
      binding: VpnBinding(),
    ),
    GetPage(
      name: ImagePage.routeName,
      page: () => const ImagePage(),
      binding: ImageBinding(),
    ),
    GetPage(
      name: StatusPage.routeName,
      page: () => const StatusPage(),
      binding: StatusBinding(),
    ),
    GetPage(
      name: BarPage.routeName,
      page: () => BarPage(),
      binding: StatusBinding(),
    ),
    GetPage(name: ComicPage.routeName, page: () => const ComicPage()),
    GetPage(name: HomePage.routeName, page: () => const HomePage())
  ];
}
